package com.zhanghp.demo02;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zhanghp
 * @date 2022-08-26 16:39
 */
@Slf4j
public class People implements EventListener {

    private final String NAME;

    public People(String name) {
        this.NAME = name;
    }

    @Override
    public void update(PhoneType type, PhoneStatus status) {
        log.info("People : {} , {} -> {}", this.NAME, type.getTYPE(), status.getSTATUS());
    }
}
